import Service from './$axios_new'
///workOrder/orderList 工单领料列表
export const orderList = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/orderList`,
        method: 'post',
        data
    })
}
//workOrder/orderList/batchPrint 工单领料列表->批量打印
export const batchPrint = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/batchPrint`,
        method: 'post',
        data
    })
}
//workOrder/orderDetail/bom 工单备料详情->物料清单
export const orderDetailBom = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/orderDetail/bom`,
        method: 'post',
        data
    })
}
//workOrder/orderDetail/{id} 工单备料详情->工单信息
export const orderDetail = (str) => {
    return Service({
        url: `/gd-wms-outbound/workOrder/orderDetail/`+str,
        method: 'get',
    })
}
//sortAndPublish/showSortView 工单调序页面查看
export const showSortView = (data) => {    
    return Service({
        url: `/gd-wms-outbound/sortAndPublish/showSortView`,
        method: 'post',
        data
    })
}
//sortAndPublish/publishOrder 工单发布
export const publishOrder = (data) => {    
    return Service({
        url: `/gd-wms-outbound/sortAndPublish/publishOrder`,
        method: 'post',
        data
    })
}
//sortAndPublish/insertOrderView 插单查询页面
export const insertOrderView = (data) => {    
    return Service({
        url: `/gd-wms-outbound/sortAndPublish/insertOrderView`,
        method: 'post',
        data
    })
}
//sortAndPublish/queryLine 查询产线
export const queryLine = (data) => {    
    return Service({
        url: `/gd-wms-outbound/sortAndPublish/queryLine`,
        method: 'post',
        data
    })
}
//sortAndPublish/queryShift 查询班别
export const queryShift = (data) => {    
    return Service({
        url: `/gd-wms-outbound/sortAndPublish/queryShift`,
        method: 'post',
        data
    })
}
//workOrder/queryDispatches 工单派工查询
export const queryDispatches = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/queryDispatches`,
        method: 'post',
        data
    })
}
//workOrder/dispatchesMan 下拉获取派工人员
export const dispatchesMan = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/dispatchesMan`,
        method: 'post',
        data
    })
}
//workOrder/dispatchesOne 派工
export const dispatchesOne = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/dispatchesOne`,
        method: 'post',
        data
    })
}
//workOrder/batchDispatches 批量派工
export const batchDispatches = (data) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/batchDispatches`,
        method: 'post',
        data
    })
}
//workOrder/region 下拉区域
export const region = (str) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/region?`+str,
        method: 'get',
    })
}
//workOrder/materialMan 下拉领料员
export const materialMan = (str) => {    
    return Service({
        url: `/gd-wms-outbound/workOrder/materialMan?`+str,
        method: 'get',
    })
}
//productionPreparation/materialRecord web领料记录
export const materialRecord = (data) => {    
    return Service({
        url: `/gd-wms-outbound/productionPreparation/materialRecord`,
        method: 'post',
        data
    })
}
//PreparationAreaManage/workOrderPreparationManage 工单备料管理
export const workOrderPreparationManage = (data) => {    
    return Service({
        url: `/gd-wms-outbound/PreparationAreaManage/workOrderPreparationManage`,
        method: 'post',
        data
    })
}
//PreparationAreaManage/warehouseManage 库存管理
export const warehouseManage = (data) => {    
    return Service({
        url: `/gd-wms-outbound/PreparationAreaManage/warehouseManage`,
        method: 'post',
        data
    })
}
//PreparationAreaManage/surplusMaterialManage 余料管理
export const surplusMaterialManage = (data) => {    
    return Service({
        url: `/gd-wms-outbound/PreparationAreaManage/surplusMaterialManage`,
        method: 'post',
        data
    })
}
//report/checkWithT100 WMS/T100上架对比
export const checkWithT100 = (data) => {    
    return Service({
        url: `/gd-wms-warehousing-rece/report/checkWithT100`,
        method: 'post',
        data
    })
}

